package cn.zwx.member.svc.fallback;

import cn.zwx.member.svc.facade.MemberGroupApi;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.cloud.openfeign.FallbackFactory;
import org.springframework.stereotype.Component;

/**
 * @author zhangwenxue
 */
@Component
public class MemberGroupFallback  implements FallbackFactory<MemberGroupApi> {

    public static final Logger logger = LoggerFactory.getLogger(MemberGroupFallback.class);
    @Override
    public MemberGroupApi create(Throwable cause) {
        logger.error("调用Member-Service fallback",cause);
        return null;
    }
}
